<?php require VIEW_PATH."/header.php";?>
<body>
	<form method="post">
<table class="hd-table hd-table-form hd-form">
    <thead>
    <tr>
        <td colspan="2">添加栏目</td>
    </tr>
    </thead>
    <tbody>
    <tr>
        <th>父级</th>
        <td>
            <select name="pid">
                <option value="0">===顶级栏目===</option>  
                {{foreach from="$data" value="$field"}}
                <option value="{{$field['cat_id']}}">{{$field['_name']}}</option>
                {{endforeach}}              
            </select>
        </td>
    </tr>
    <tr>
        <th>栏目名称</th>
        <td>
            <input type="text" name="cat_name" class="hd-w300">
        </td>
    </tr>
    <tr>
        <th>所属类型</th>
        <td>
            <select name="type_id">
                <option value="0">===请选择类型===</option>  
                {{foreach from="$ShopType" value="$field"}}
                <option value="{{$field['id']}}">{{$field['type_name']}}</option>
                {{endforeach}}              
            </select>
        </td>
    </tr>
   <tr>
        <th>栏目关键词</th>
        <td>
            <input type="text" name="keyword" class="hd-w300">
        </td>
    </tr>
    <tr>
        <th>栏目描述</th>
        <td>
            <textarea name="dest" class="hd-w300 hd-h100"></textarea>
        </td>
    </tr>
    <tr>
        <td colspan="2">
        <button class="hd-btn hd-btn-primary">提交</button>
        </td>
    </tr>
    </tbody>
</table>
</form>
</body>
</html>